package com.cloud.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cloud.core.BaseService;
import com.cloud.dao.AppointmentBean;
import com.cloud.dao.impl.AppointmentDao;

/**
 * 1Cloud1
 * @author Administrator
 * @since 2016-1-19
 * @version 1.0 
 */
@Service("AppointmentService")
public class AppointmentService extends BaseService{
	
	@Autowired
	private AppointmentDao AppointmentDao;
	
	public List<AppointmentBean> getClinicList(AppointmentBean bean){
		return AppointmentDao.getClinicList(bean);
	}
	
	public String addClinic(AppointmentBean bean){
		return AppointmentDao.addClinic(bean);
	}
	
	public void updateClinic(AppointmentBean bean){
		AppointmentDao.updateClinic(bean);
	}
	
	public void deleteClinic(AppointmentBean bean){
		AppointmentDao.deleteClinic(bean);
	}
	
	public List<AppointmentBean> getAppointmentList(AppointmentBean bean){
		return AppointmentDao.getAppointmentList(bean);
	}
	
	public List<AppointmentBean> getPatientAppointmentList(AppointmentBean bean){
		return AppointmentDao.getPatientAppointmentList(bean);
	}
	
	public String addAppointment(AppointmentBean bean){
		return AppointmentDao.addAppointment(bean);
	}
	
	public void updateAppointment(AppointmentBean bean){
		AppointmentDao.updateAppointment(bean);
	}
	
	public void deleteAppointment(AppointmentBean bean){
		AppointmentDao.deleteAppointment(bean);
	}
}
